using LeaRun.Application.Code;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace LeaRun.Application.Entity.SystemManage
{
	public class ExcelImportEntity : BaseEntity
	{
		[Column("F_ID")]
		public string F_Id
		{
			get;
			set;
		}
		[Column("F_NAME")]
		public string F_Name
		{
			get;
			set;
		}
		[Column("F_MODULEID")]
		public string F_ModuleId
		{
			get;
			set;
		}
		[Column("F_MODULEBTNID")]
		public string F_ModuleBtnId
		{
			get;
			set;
		}
		[Column("F_DBID")]
		public string F_DbId
		{
			get;
			set;
		}
		[Column("F_DBTABLE")]
		public string F_DbTable
		{
			get;
			set;
		}
		[Column("F_ERRORTYPE")]
		public int? F_ErrorType
		{
			get;
			set;
		}
		[Column("F_ENABLEDMARK")]
		public int? F_EnabledMark
		{
			get;
			set;
		}
		[Column("F_CREATEDATE")]
		public DateTime? F_CreateDate
		{
			get;
			set;
		}
		[Column("F_CREATEUSERNAME")]
		public string F_CreateUserName
		{
			get;
			set;
		}
		[Column("F_CREATEUSERID")]
		public string F_CreateUserId
		{
			get;
			set;
		}
		public DateTime? F_ModifyDate
		{
			get;
			set;
		}
		public string F_ModifyUserId
		{
			get;
			set;
		}
		public string F_ModifyUserName
		{
			get;
			set;
		}
		public override void Create()
		{
			this.F_Id = Guid.NewGuid().ToString();
			this.F_EnabledMark = new int?(1);
			this.F_CreateDate = new DateTime?(DateTime.Now);
			this.F_CreateUserId = OperatorProvider.Provider.Current().UserId;
			this.F_CreateUserName = OperatorProvider.Provider.Current().UserName;
		}
		public override void Modify(string keyValue)
		{
			this.F_Id = keyValue;
			this.F_ModifyDate = new DateTime?(DateTime.Now);
			this.F_ModifyUserId = OperatorProvider.Provider.Current().UserId;
			this.F_ModifyUserName = OperatorProvider.Provider.Current().UserName;
		}
	}
}
